info = 'abcdefgh'
# 获取cde
print(info[2:5])
# 获取defgh
print(info[3:])
# 获取abc
print(info[:3])
# 获取ace
print(info[:5:2])
# 获取hgfedcba
print(info[::-1])

